<?include "../top.php";

echo phpinfo();exit;
if($INCOME['submit']=="0")
{
	$addTime = "2013-04-".$INCOME['dealerId'];
	$con = " and addTime like '%".$addTime."%'";
}
$user =$DB->db_query_first("SELECT count(*) as num FROM customer_info  where id >13 and birthday is not null $con");
$num1 = $user['num'];
$user =$DB->db_query_first("SELECT count(*) as num FROM customer_info  where id >13 and birthday is null $con");
$num2 = $user['num'];
$user =$DB->db_query_first("SELECT count(*) as num FROM log_user_login  where addTime like '%".$addTime."%'");
$num3 = $user['num'];
?>
<form name="form" action="" method="post" >
选择日期&nbsp &nbsp4月<select name="dealerId">日
<?for($i=19;$i<=30;$i++){?>
<option value="<?echo $i?>" <?if($i==$INCOME['dealerId']){echo "selected";}?>><?echo $i?></option>
<?}?>
</select>
<input type="hidden" name="submit" value="0"/>
<input type="submit" name="ttt" value="查询"/>
</form>
<br/>
账户登录次数汇总：<?echo $num3;?><br/><br/>
ipad 录入顾客数量：<?echo $num1;?><br/><br/>
查询到itouch的顾客数量：<?echo $num2;?><br/><br/>
总共顾客数量：<?echo $num1 + $num2;?>